/*
 * Created By Visual Studio 2005
 * Create by: daqingshu
 * Create at: 2007-1-13 21:14:26
 * Organization: BIT
 * 
 *
 */

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Adge.Web.UI.Admin
{
    public partial class index : Adge.UI.AdminPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (HttpContext.Current.Request.IsAuthenticated)
            {
                if (HttpContext.Current.User.IsInRole("administrator"))
                {
                    //Response.Redirect("index.aspx", true);
                }
                else
                {
                    //Response.Redirect("~/default.aspx", true);
                }
            }
            else
            {
                //Response.Redirect("~/default.aspx", true);
            }            
        }
    }
}
